package com.fcg.redis.topone.bean;

import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author FCG
 */
@Builder
@Data
public class Goods {
    @NotBlank(message = "goods id can't be blank", groups = BuyGoods.class)
    private String id;
    private String name;
    /**
     * 销量
     */
    private Integer saleCount;

    public interface BuyGoods {
    }
}
